package com.ruoyi.fs.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.fs.mapper.FsLayerTeamMapper;
import com.ruoyi.fs.domain.FsLayerTeam;
import com.ruoyi.fs.service.IFsLayerTeamService;

/**
 * 律师团队Service业务层处理
 * 
 * @author hero
 * @date 2024-09-23
 */
@Service
public class FsLayerTeamServiceImpl implements IFsLayerTeamService 
{
    @Autowired
    private FsLayerTeamMapper fsLayerTeamMapper;

    /**
     * 查询律师团队
     * 
     * @param id 律师团队主键
     * @return 律师团队
     */
    @Override
    public FsLayerTeam selectFsLayerTeamById(Long id)
    {
        return fsLayerTeamMapper.selectFsLayerTeamById(id);
    }

    /**
     * 查询律师团队列表
     * 
     * @param fsLayerTeam 律师团队
     * @return 律师团队
     */
    @Override
    public List<FsLayerTeam> selectFsLayerTeamList(FsLayerTeam fsLayerTeam)
    {
        return fsLayerTeamMapper.selectFsLayerTeamList(fsLayerTeam);
    }

    /**
     * 新增律师团队
     * 
     * @param fsLayerTeam 律师团队
     * @return 结果
     */
    @Override
    public int insertFsLayerTeam(FsLayerTeam fsLayerTeam)
    {
        fsLayerTeam.setCreateTime(DateUtils.getNowDate());
        return fsLayerTeamMapper.insertFsLayerTeam(fsLayerTeam);
    }

    /**
     * 修改律师团队
     * 
     * @param fsLayerTeam 律师团队
     * @return 结果
     */
    @Override
    public int updateFsLayerTeam(FsLayerTeam fsLayerTeam)
    {
        fsLayerTeam.setUpdateTime(DateUtils.getNowDate());
        return fsLayerTeamMapper.updateFsLayerTeam(fsLayerTeam);
    }

    /**
     * 批量删除律师团队
     * 
     * @param ids 需要删除的律师团队主键
     * @return 结果
     */
    @Override
    public int deleteFsLayerTeamByIds(Long[] ids)
    {
        return fsLayerTeamMapper.deleteFsLayerTeamByIds(ids);
    }

    /**
     * 删除律师团队信息
     * 
     * @param id 律师团队主键
     * @return 结果
     */
    @Override
    public int deleteFsLayerTeamById(Long id)
    {
        return fsLayerTeamMapper.deleteFsLayerTeamById(id);
    }
}
